home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_ORBit.idb / usr / freeware / include / IIOP / IIOP.h.z / IIOP.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.9 KB  |  53 lines

  1. #ifndef IIOP_H
  2. #define IIOP_H 1
  3.  
  4. #include <unistd.h>
  5. #include <ORBitutil/util.h>
  6. #include "IIOP-config.h"
  7. #include "IIOP-types.h"
  8. #include "giop-msg-buffer.h"
  9. #include "iiop-encoders.h"
  10. #include "iiop-endian.h"
  11.  
  12. /* We don't speak GIOP 1.0, sosumi */
  13. #define GIOP_1_1
  14.  
  15.  
  16. void giop_init(const char *argv0);
  17.  
  18. /* You use this to get a pointer to a new (or existing) connection
  19.    that has the specified host/port characteristics */
  20. IIOPConnection *iiop_connection_get(const char *host, gushort port,
  21.                     gboolean existing_only);
  22. /* Similar, but for UNIX sockets */
  23. IIOPConnection *iiop_connection_unix_get(const char *sockpath,
  24.                      gboolean existing_only);
  25.  
  26. /* gives us a local socket that other people can connect to... */
  27. IIOPConnection *iiop_connection_server(void);
  28. IIOPConnection *iiop_connection_server_ipv6(void);
  29. IIOPConnection *iiop_connection_server_unix(const char *sockpath);
  30.  
  31. void giop_main_quit(void);
  32. void giop_main(void); /* main loop for the program if none other is given,
  33.              and also used while waiting for a reply */
  34. void giop_main_iterate(gboolean blocking);
  35. void giop_main_handle_connection(GIOPConnection *connection);
  36. void giop_main_handle_connection_exception(GIOPConnection *connection);
  37. GIOPRecvBuffer *giop_main_next_message(gboolean blocking);
  38. GIOPRecvBuffer *giop_main_next_message_2(gboolean blocking,
  39.                      GIOPConnection *monitor);
  40. GIOPConnection *giop_check_connections(gboolean block_for_reply);
  41.  
  42. /* This assumes that the appropriate GIOP_CLOSECONNECTION message
  43.    has been sent to the peer */
  44. void giop_connection_free(GIOPConnection *connection);
  45.  
  46. /* Called when a connection is created */
  47. extern void (*IIOPAddConnectionHandler)(GIOPConnection *newcnx);
  48. /* Called when a connection is about to be destroyed */
  49. extern void (*IIOPRemoveConnectionHandler)(GIOPConnection *oldcnx);
  50. extern void (*IIOPIncomingMessageHandler)(GIOPRecvBuffer *recv_buffer);
  51.  
  52. #endif /* IIOP_H */
  53.